/*
 * @Author: bear
 * @Date: 2022-08-08 13:24:58
 * @LastEditors: bear
 * @LastEditTime: 2022-09-07 11:27:03
 * @Description: your project
 * @version: 1.0
 */
const koa2 = require("koa2");
const bodyParser  = require("koa-bodyparser");
const app = new koa2();
// let loginRouter = require('./routes/login')
var postRouter  = require('./routes/post')
// app.use(bodyParser())
//    .use(loginRouter.routes())
app.use(bodyParser())
   .use(postRouter.routes())
app.listen(3000)
